/**
 * 首页相关API
 */

import request from './index.js'

// 首页相关API
export const homeApi = {
  // 获取banner列表
  getBannerList() {
    return request.get('/common/banner/2/list')
  },
  
  // 获取活动列表
  getActivityList(params = {}) {
    return request.get('/api/v1/sales/home/activity/list', params)
  },
  
  // 获取首页HTML内容
  getIndexHtml() {
    return request.get('/api/v1/sales/home/index.html')
  }
}

export default homeApi 